
	package dao;
	import java.sql.SQLException;
import java.util.ArrayList;

import dao.DAOException;
	import model.LeaveDTO;
import model.LeaveSearchDTO;


	public interface LeaveDAO {
		public ArrayList<LeaveDTO> findLeaveHistory(int employeeID) throws DAOException;
		public ArrayList<LeaveDTO> findLeaveforEmployee(int employeeID) throws DAOException;
		public LeaveDTO findLeave(int employeeID) throws DAOException;
	    public ArrayList<LeaveDTO> findAllLeave() throws DAOException;
	    public void insertLeave(LeaveDTO leave) throws DAOException, SQLException;
	    public void updateLeave(LeaveDTO leave) throws DAOException;
	    public void deleteLeave(LeaveDTO leave) throws DAOException;
	    public ArrayList<LeaveDTO> findLeaveByCriteria(LeaveSearchDTO so) throws DAOException;
		//public ArrayList<LeaveDTO> findleavehistory(int empid);
		public LeaveDTO DeleteLeave(LeaveDTO leave)throws DAOException;
		
	}

